﻿@model EagleProject.LinQDataContext.JobApplication
@{
    ViewBag.Title = "Job Seeker";
}

@if (ViewBag.RegisterSuccess != null && ViewBag.RegisterSuccess)
{
    <h2>Register Successed !</h2>
}
else
{
    using (Html.BeginForm("Index", "JobSeeker", FormMethod.Post, new { enctype = "multipart/form-data" }))
    {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Job Seeker Register Form</legend>
        <ol>
            <li>
                <div class="tbl-first">@Html.LabelFor(m => m.Title)</div>
                <div class="tbl-next">@Html.DropDownListFor(m => m.Title, (SelectList)ViewBag.ListTitleName, "Select Title Name")</div>
                <div class="tbl-end">@Html.ValidationMessageFor(m => m.Title)</div>
                <div class="clear"></div>
            </li>
            <li>
                <div class="tbl-first">@Html.LabelFor(m => m.FirstName)</div>
                <div class="tbl-next">@Html.TextBoxFor(m => m.FirstName)</div>
                <div class="tbl-end">@Html.ValidationMessageFor(m => m.FirstName)</div>
                <div class="clear"></div>
            </li>
            <li>
                <div class="tbl-first">@Html.LabelFor(m => m.MiddleName)</div>
                <div class="tbl-next">@Html.TextBoxFor(m => m.MiddleName)</div>
                <div class="tbl-end">@Html.ValidationMessageFor(m => m.MiddleName)</div>
                <div class="clear"></div>
            </li>
            <li>
                <div class="tbl-first">@Html.LabelFor(m => m.LastName)</div>
                <div class="tbl-next">@Html.TextBoxFor(m => m.LastName)</div>
                <div class="tbl-end">@Html.ValidationMessageFor(m => m.LastName)</div>
                <div class="clear"></div>
            </li>
            <li>
                <div class="tbl-first">@Html.LabelFor(m => m.ContactMobile1)</div>
                <div class="tbl-next">@Html.TextBoxFor(m => m.ContactMobile1)</div>
                <div class="tbl-end">@Html.ValidationMessageFor(m => m.ContactMobile1)</div>
                <div class="clear"></div>
            </li>
            <li>
                <div class="tbl-first">@Html.LabelFor(m => m.ContactMobile2)</div>
                <div class="tbl-next">@Html.TextBoxFor(m => m.ContactMobile2)</div>
                <div class="tbl-end">@Html.ValidationMessageFor(m => m.ContactMobile2)</div>
                <div class="clear"></div>
            </li>
            <li>
                <div class="tbl-first">@Html.LabelFor(m => m.City)</div>
                <div class="tbl-next">@Html.TextBoxFor(m => m.City)</div>
                <div class="tbl-end">@Html.ValidationMessageFor(m => m.City)</div>
                <div class="clear"></div>
            </li>
            <li>
                <div class="tbl-first">@Html.LabelFor(m => m.StateID)</div>
                <div class="tbl-next">@Html.DropDownListFor(m => m.StateID, (SelectList)ViewBag.StateList)</div>
                <div class="tbl-end">@Html.ValidationMessageFor(m => m.StateID)</div>
                <div class="clear"></div>
            </li>
            <li>
                <div class="tbl-first">@Html.LabelFor(m => m.Addresses)</div>
                <div class="tbl-next">@Html.TextBoxFor(m => m.Addresses)</div>
                <div class="tbl-end">@Html.ValidationMessageFor(m => m.Addresses)</div>
                <div class="clear"></div>
            </li>
            <li>
                <div class="tbl-first">@Html.LabelFor(m => m.Highest_Education)</div>
                <div class="tbl-next">@Html.DropDownListFor(m => m.Highest_Education, new SelectList(ViewBag.ListEducation, "Value", "Text"))</div>
                <div class="tbl-end">@Html.ValidationMessageFor(m => m.Highest_Education)</div>
                <div class="clear"></div>
            </li>
            <li>
                <div class="tbl-first">@Html.LabelFor(m => m.InstitutionName)</div>
                <div class="tbl-next">@Html.TextBoxFor(m => m.InstitutionName)</div>
                <div class="tbl-end">@Html.ValidationMessageFor(m => m.InstitutionName)</div>
                <div class="clear"></div>
            </li>
            <li>
                <div class="tbl-first">@Html.LabelFor(m => m.CourseOfStudy)</div>
                <div class="tbl-next">@Html.TextBoxFor(m => m.CourseOfStudy)</div>
                <div class="tbl-end">@Html.ValidationMessageFor(m => m.CourseOfStudy)</div>
                <div class="clear"></div>
            </li>
            <li>
                <div class="tbl-first">@Html.LabelFor(m => m.Grade)</div>
                <div class="tbl-next">@Html.TextBoxFor(m => m.Grade)</div>
                <div class="tbl-end">@Html.ValidationMessageFor(m => m.Grade)</div>
                <div class="clear"></div>
            </li>
            <li>
                <div class="tbl-first">@Html.LabelFor(m => m.Email)</div>
                <div class="tbl-next">@Html.TextBoxFor(m => m.Email)</div>
                <div class="tbl-end">@Html.ValidationMessageFor(m => m.Email)</div>
                <div class="clear"></div>
            </li>
            <li>
                <div class="tbl-first">
                    <label for="file">Document File</label>
                </div>
                <div class="tbl-next">
                    <input type="file" name="file" />
                </div>
                <div class="clear"></div>
            </li>
            <li>
                <input type="submit" name="Submit" id="Submit" value="Submit" class="btn" />
            </li>
        </ol>
    </fieldset>
    }
    @section Scripts {
        @Scripts.Render("~/bundles/jqueryval")
    }
}